package com.baizan.daka.ui.adapter


import com.baizan.daka.mvp.model.bean.NewsInfoBean
import com.baizan.daka.mvp.model.bean.TaskInfoBean
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.dianzan.daka.R

class NewsAdapter : BaseQuickAdapter<NewsInfoBean, BaseViewHolder>(R.layout.item_news) {


    override fun convert(helper: BaseViewHolder, item: NewsInfoBean) {
        helper.setText(R.id.news_name,item.title)
            .setText(R.id.news_content,item.content)
            .setText(R.id.new_time,item.createTime)
    }


}